<?php
function crc32_hash($key, $max=100)
{
  return (crc32($key) & 0x7fffffff) % $max;
}
